﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="PreViewLab.aspx.cs" Inherits="LabMS.Web.LabManage.PreViewLab" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>实验室信息预览</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <script src="../js/Common.js" type="text/javascript"></script>
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript" language="javascript">
    function refreshParent() 
        {   
            window.opener.location.href = window.opener.location.href;
        }
         function wincolse()
        {
            this.window.close();
        }
        function add()
        {
            openNewWin('./AddSubLab.aspx?ID=' + document.getElementById('IDHF').value,700,600);
        }
        function modify()
        {
            RedirectURL(window,'./AddNewLab.aspx?ID='+document.getElementById("IDHF").value);
        }
        function downloadfile(id)
        {
            openNewWin('../CommonPage/DownLoadFile.aspx?ID='+id +'&Flag=download');
        }
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label ><%=LabName %>基本信息</label>
                </div>
            </div>
        </div>
        <asp:Label ID="ERRLbl" runat="server" Visible="false"></asp:Label>
        <div style="padding: 5px;" class="main">
            <p>
                <input id="modeify" runat="server" value="修改" type="button" class="button" onclick='modify()' />
                <input id="addsublab" runat="server" type="button" class="button" value="添加实验分室"
                     onclick='add()' />
                <input id="concel" runat="server" value="返回" type="button" class="button" onclick='wincolse()'
                    visible="false" />
                <asp:Button ID="DeleteBtn" runat="server" CssClass="button" Text="删除" OnClientClick="return confirm('确定删除吗？')" 
                    OnClick="DeleteBtn_Click" />
            </p>
            <p>
                
            </p>
            <table cellspacing="0" cellpadding="2" border="0">
                <tr>
                    <td>
                        <label class="itemTitle">
                            实验室编号：</label>
                    </td>
                    <td>
                        <asp:Label ID="LabNumLbl" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            所属学科：</label>
                    </td>
                    <td>
                        <asp:Label ID="SubjectLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            实验室名称：</label>
                    </td>
                    <td>
                        <asp:Label ID="LabNameLbl" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            实验室英文名称：</label>
                    </td>
                    <td>
                        <asp:Label ID="LabEnNameLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            实验室类别：</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="LabKindDDL" runat="server" ToolTip="实验室类别" DataTextField="Name"
                            DataValueField="Code" Enabled="false">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <label class="itemTitle">
                            实验室类型：</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="LabTypeDDL" runat="server" ToolTip="实验室类型" DataTextField="Name"
                            DataValueField="Code" Enabled="false">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            级别：</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="LabLevelDDL" runat="server" ToolTip="实验室级别" DataTextField="Name"
                            DataValueField="Code" Enabled="false">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <label class="itemTitle">
                            总投资额(万元)：</label>
                    </td>
                    <td>
                        <asp:Label ID="InvestmentLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            建立年份：</label>
                    </td>
                    <td>
                        <asp:Label ID="DateLbl" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            奖励级别：</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="AwardLevelDDL" ToolTip="奖励级别" runat="server" DataTextField="Name"
                            DataValueField="Code" Enabled="false">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            实验室负责人：</label>
                    </td>
                    <td>
                        <asp:Label ID="ManagerLbl" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            使用标志：</label>
                    </td>
                    <td>
                        <asp:DropDownList ID="StatusDDL" ToolTip="使用标志" runat="server" DataTextField="Name"
                            DataValueField="Code" Enabled="false">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            科研任务承担课<br />题及服务项目数：</label>
                    </td>
                    <td>
                        <asp:Label ID="ProjectNumLbl" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            学生获奖数：</label>
                    </td>
                    <td>
                        <asp:Label ID="AwardNumLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            联系电话：</label>
                    </td>
                    <td>
                        <asp:Label ID="TelLbl" runat="server" Text="Label"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            批准文号：</label>
                    </td>
                    <td>
                        <asp:Label ID="NumLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            面向专业：</label>
                    </td>
                    <td>
                        <asp:Label ID="ProfessionLbl" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            实验用房面积：</label>
                    </td>
                    <td>
                        <asp:Label ID="RoomAreaLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            主要承担课程：</label>
                    </td>
                    <td colspan="3">
                        <asp:Label ID="CurriculumLbl" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr id="tr1" runat="server">
                    <td>
                        <label class="itemTitle">
                            简介文件：</label>
                    </td>
                    <td colspan="3">
                        <label id="filehtml" runat="server"></label>
                    </td>
                </tr>
            </table>
            <br />
            <table cellpadding="2" cellspacing="0" border="0">
                <tr valign="top">
                    <td>
                        <label class="itemTitle">
                            实验分室</label>
                    </td>
                    <td>
                        <asp:GridView runat="server" ID="SubLabGridView" AutoGenerateColumns="false" DataKeyNames="ID"
                            Visible="false" CssClass="infoTable">
                            <Columns>
                                <asp:BoundField HeaderText="实验室分实名" DataField="Lab_Name" />
                                <asp:BoundField HeaderText="投资金额" DataField="Lab_Investment" />
                                <asp:BoundField HeaderText="负责人" DataField="Lab_InCharge" />
                                <asp:BoundField HeaderText="使用总面积" DataField="Room_Area" />
                                <%--<asp:BoundField HeaderText="设备台套数" DataField="" />
                                <asp:BoundField HeaderText="设备总值" DataField="" />--%>
                                <asp:BoundField HeaderText="占用房间数" DataField="Room_Num" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                            <EmptyDataTemplate>
                                无分室
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
            <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                    <td>
                        <label class="itemTitle">
                            备注：</label>
                    </td>
                    <td>
                        <asp:Label ID="StatementLbl" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <asp:HiddenField ID="IDHF" runat="server" Value="0" />
    </form>

    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript" src="../js/jQuery/jquery.bgiframe.js"></script>

    <script type="text/javascript" src="../js/jQuery/jquery.json-1.3.min.js"></script>

    <script type="text/javascript" src="../js/site.js"></script>

    <script type="text/javascript">
//    $(document).ready(function(){
//                                 if($("#filehtml").val()!="")
//                                 {
//                                     $("#filelist").html($("#filehtml").val());
//                                 }
//                                 else
//                                 {
//                                     $("#filelist").html("无附件");
//                                 }
//    });
    </script>

</body>
</html>
